<div class="modal-header">
    <sapn class="modal-title h3">修改密码</sapn>
    <a href class="iconfont icon-close pull-right" ng-click="cancel()"></a>
</div>
<div class="modal-body">
    <form method="post" name="Form" novalidate class="form-horizontal">
        <div class="form-group has-feedback" ng-class="{'has-success':Form.oldPassword.$valid,'has-error':Form.oldPassword.$invalid && Form.oldPassword.$dirty}">
            <label class="col-sm-2 col-md-3  control-label">请输入旧密码：</label>
            <div class="col-sm-10 col-md-8">
                <input type="password" class="form-control" placeholder="旧密码" ng-model="form.oldPassword" name="oldPassword" required>
            </div>
        </div>
        <div class="form-group has-feedback" ng-class="{'has-success':Form.newPassword.$valid && form.newPassword!=form.oldPassword,'has-error':Form.newPassword.$invalid && Form.newPassword.$dirty||Form.newPassword.$dirty && form.newPassword == form.oldPassword}">
            <label class="col-sm-2 col-md-3  control-label">请输入新密码：</label>
            <div class="col-sm-10 col-md-8">
                <input type="password" class="form-control" placeholder="新密码" ng-model="form.newPassword" name="newPassword" required>
                <span class="help-block" ng-show="Form.newPassword.$dirty && form.newPassword == form.oldPassword">新旧密码不能一致</span>
            </div>
        </div>
        <div class="form-group has-feedback" ng-class="{'has-success':Form.newPassword.$valid&& Form.renewPassword.$dirty&&form.newPassword==form.renewPassword,'has-error':Form.newPassword.$valid&&Form.renewPassword.$dirty&&form.newPassword!=form.renewPassword}">
            <label class="col-sm-2 col-md-3  control-label">请确认新密码：</label>
            <div class="col-sm-10 col-md-8">
                <input type="password" class="form-control" placeholder="重复新密码" ng-model="form.renewPassword" name="renewPassword" required>
                <span class="help-block" ng-show="Form.renewPassword.$dirty&&form.newPassword!=form.renewPassword">两次输入新密码不一致</span>
            </div>
        </div>
    </form>
</div>
<div class="modal-footer" style="text-align:center">
    <button class="btn btn-primary" style="margin-top:10px" ng-click="ok()" ng-disabled="Form.$invalid">　　提交　　</button>
    <button class="btn btn-default" style="margin-top:10px" ng-click="cancel()">　　取消　　</button>
</div>
